def fac(num):
    if num == 1:
        result_num = 1
    else:
        result_num = fac(num - 1) * num
    return result_num


print(fac(5))